<?php
require 'myphp/myphp.php';
if(isset($_GET['m'])&&isset($_GET['c'])){
	$model=$_GET['m'];
	$class=$_GET['c'];
	require "app/$model/$class.php";
	$obj = new $class;
	if(isset($_GET['a'])){
		$obj->$_GET['a']();	
	}
}elseif(isset($_GET['m'])&&isset($_GET['h'])){
	$model=$_GET['m'];
	$h=$_GET['h'];
	require "app/$model/$h.html";	
}else{
	require "app/index/main.html";
}	

		


